import { createBottomTabNavigator } from "react-navigation";

import MainHomeScreen from "../pages/Main/Home";
import MainMyScreen from "../pages/Main/My";
import MainSurroundingScreen from "../pages/Main/Surrounding";

const MainTabNavigator = createBottomTabNavigator(
    {
        home: {
            screen: MainHomeScreen,
            navigationOptions: ({ navigation }: any) => ({
                header: null
            })
        },
        my: {
            screen: MainMyScreen,
            navigationOptions: ({ navigation }: any) => ({
                header: null
            })
        },
        surrounding: {
            screen: MainSurroundingScreen,
            navigationOptions: ({ navigation }: any) => ({
                header: null
            })
        }
    },
    {
        initialRouteName: "home"
    }
);
export default MainTabNavigator;
